package com.fbee.smartcommunities.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fbee.smartcommunities.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * <p>
 * 商品 Mapper 接口
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-16
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    Page<Goods> getPage(@Param("page") Page<?> page);

    Goods getById(@Param("id") Long id);

    Integer getGoodsStore(@Param("id") Long id);
}
